<?php

use Illuminate\Routing\Router;

Route::group([], function (Router $router) {
    $router->group([
        'prefix' => 'files',
        'as'     => 'files.',
    ], function (\Illuminate\Routing\Router $router) {
        $router->get('online/{path?}', 'FilePreviewController@online')->where('path', '(.*)')->name('online');
        $router->get('preview/{id}/{action?}', 'FilePreviewController@preview')->name('preview');
        $router->get('patent-apply/{id}/table', 'FilePreviewController@patentApplyTable')->name('patent-apply.table');
    });
});
